<!--<?php
print <<<EOT
-->
 <script type="text/javascript" language="JavaScript" src="js/pw_tags.js"></script>
<script type="text/javascript">
<!--
tag.addtag = function(o){
	var str = tag.input.value.replace(/^\s+/g,'').replace(/\s+$/g,'');
	str = str.replace(/\s+/g,' ');
	if(str.split(' ').length > 4){
		alert('最多可以添加5个标签');
	} else{
		tag.input.value = str + (str ? ' ' : '') + o.innerHTML;
	}
}
function inputOnfocus() {
	if(tag.obj == null){
		tag.init();
	} else{
		//
	}
}
//-->
</script>

<form action="$ajax_basename" method="post" name="form1" onsubmit="return false;" enctype="multipart/form-data">
<input type="hidden" name="hid" value="$hid">
<input type="hidden" name="model" value="$model">
<input type="hidden" name="type" value="relate">
<input type="hidden" name="step" value="2">
<table cellspacing="0" cellpadding="0" width="500">
	<tbody>
		<tr><th class="h" colspan="2" style="cursor:move" onmousedown="read.move(event);"><span class="fr" style="margin-top:2px;cursor:pointer" onclick="closep();"><img src="$imgpath/close.gif" /></span>标签设置</th></tr>

		<tr>
			<td>
            <p class="mb10 s5" style="width:480px; line-height:18px;">楼盘最新资讯可以通过标签关联进行自动调用。<br />比如将“楼盘名称”添加到关联标签中，就可以自动调用以“楼盘名称”作为标签的帖子</p>
			<p><span class="fl lh_18 s5 mr5">关联标签</span><span><input id="atc_tags" class="input fl" name="tags" maxlength="80" size="40" value="$tags" tabindex="3" autocomplete="off" onfocus="inputOnfocus();" /></span> <span class="btn2"><span><button type="button" name="ajaxsubmit" onclick="ajax.submit(this.form,ajax.guide);" onfocus="blur();">提交</button></span></span></p>
			</td>

		</tr>
		<tr>
			<td>
				<fieldset id="tagmenu" style="border:1px solid $tdcolor;width:470px;padding:3px;margin:2px 0;display:none;"><legend>热门标签</legend><div style="height:80px;overflow-y:auto;"></div></fieldset>
			</td>
		</tr>
   
   </tbody>
</table>
</form>
<!--
EOT;
?>-->